package com.oms.module.common.controller;

import com.oms.common.ResponseCodeConst;
import com.oms.common.ResponseDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zhanghailong QQ38592077
 * @Description TODO
 * @Date 2020/6/8 17:34
 */
@RestController
@Api(value = "公用接口")
@RequestMapping
public class LoginController {
    @PostMapping("/doLogin")
    @ApiOperation(value = "公用登陆接口")
    public void doLogin(String username,String password){ }
    @RequestMapping("/login")
    @ApiOperation(value = "没有登陆前往返回登陆提示",hidden = true)
    public ResponseDTO login(){
        return ResponseDTO.wrap(ResponseCodeConst.LOGIN);
    }

}
